package com.clay.Proxy.Cglib;

/**
 * @Author : clay
 * @Description:
 * @Date: Create in 9:45 2021/3/17
 * @Modified By:
 */
public class client {
    public static void main(String[] args) {
        TeacherDao teacherDao=new TeacherDao();
        ProxyFactory proxyFactory = new ProxyFactory(teacherDao);
        TeacherDao proxyInstance = (TeacherDao) proxyFactory.getProxyInstrance();
        proxyInstance.teach();
    }
}
